home *** CD-ROM | disk | FTP | other *** search
Wrap
XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttSSSSttttrrrriiiinnnnggggTTTTooooUUUUnnnniiiittttssss((((3333XXXX))))UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVVXXXXmmmmCCCCoooonnnnvvvveeeerrrrttttSSSSttttrrrriiiinnnnggggTTTTooooUUUUnnnniiiittttssss((((3333XXXX)))) NNNNAAAAMMMMEEEE XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttSSSSttttrrrriiiinnnnggggTTTTooooUUUUnnnniiiittttssss - A function that converts a string specification to a unit value SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS #include <Xm/Xm.h> iiiinnnntttt XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttSSSSttttrrrriiiinnnnggggTTTTooooUUUUnnnniiiittttssss( SSSSccccrrrreeeeeeeennnn ****ssssccccrrrreeeeeeeennnn, SSSSttttrrrriiiinnnngggg ssssppppeeeecccc, iiiinnnntttt oooorrrriiiieeeennnnttttaaaattttiiiioooonnnn, iiiinnnntttt ttttoooo____ttttyyyyppppeeee, XXXXttttEEEEnnnnuuuummmm ****ppppaaaarrrrsssseeee____eeeerrrrrrrroooorrrr); VVVVEEEERRRRSSSSIIIIOOOONNNN This page documents Motif 2.1. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttSSSSttttrrrriiiinnnnggggTTTTooooUUUUnnnniiiittttssss converts a string specification value and returns the converted value as the return value from the function. This function uses the specified screen's resolution to compute the number of units for the string specification. _s_c_r_e_e_n Specifies the screen whose resolution is to be used for the computation. _s_p_e_c Specifies the string, in <_f_l_o_a_t_i_n_g _v_a_l_u_e><_u_n_i_t> format, to be converted. _o_r_i_e_n_t_a_t_i_o_n Specifies whether the converter uses the horizontal or vertical screen resolution when performing the conversion. The _o_r_i_e_n_t_a_t_i_o_nparameter can have values of XXXXmmmmHHHHOOOORRRRIIIIZZZZOOOONNNNTTTTAAAALLLL or XXXXmmmmVVVVEEEERRRRTTTTIIIICCCCAAAALLLL. _t_o__t_y_p_e Converts the value to the unit type specified. Refer to the XXXXmmmmNNNNuuuunnnniiiittttTTTTyyyyppppeeee resource of the XXXXmmmmGGGGaaaaddddggggeeeetttt, XXXXmmmmMMMMaaaannnnaaaaggggeeeerrrr, or XXXXmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee reference page. This parameter can have one of the following values: XXXXmmmmPPPPIIIIXXXXEEEELLLLSSSS The returned value will be the number of pixels. XXXXmmmmMMMMIIIILLLLLLLLIIIIMMMMEEEETTTTEEEERRRRSSSS The returned value will be the number of millimeters. _X_m_1_0_0_T_H__M_I_L_L_I_M_E_T_E_R_S The returned values will be the number of 1/100 millimeters. Page 1 (printed 4/6/01) XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttSSSSttttrrrriiiinnnnggggTTTTooooUUUUnnnniiiittttssss((((3333XXXX))))UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVVXXXXmmmmCCCCoooonnnnvvvveeeerrrrttttSSSSttttrrrriiiinnnnggggTTTTooooUUUUnnnniiiittttssss((((3333XXXX)))) XXXXmmmmCCCCEEEENNNNTTTTIIIIMMMMEEEETTTTEEEERRRRSSSS The returned values will be the number of centimeters. XXXXmmmmIIIINNNNCCCCHHHHEEEESSSS The returned values will be the number of inches. _X_m_1_0_0_0_T_H__I_N_C_H_E_S The returned values will be the number of 1/100 inches. XXXXmmmmPPPPOOOOIIIINNNNTTTTSSSS The returned values will be the number of points. A point is a text processing unit defined as 1/72 of an inch. _X_m_1_0_0_T_H__P_O_I_N_T_S The returned values will be the number of 1/100 points. XXXXmmmmFFFFOOOONNNNTTTT____UUUUNNNNIIIITTTTSSSS All values provided to the widget are treated as font units. A font unit has horizontal and vertical components. These are the values of the XmScreen resources XXXXmmmmNNNNhhhhoooorrrriiiizzzzoooonnnnttttaaaallllFFFFoooonnnnttttUUUUnnnniiiittttand XXXXmmmmNNNNvvvveeeerrrrttttiiiiccccaaaallllFFFFoooonnnnttttUUUUnnnniiiitttt. _X_m_1_0_0_T_H__F_O_N_T__U_N_I_T_S All values provided to the widget are treated as 1/100 of a font unit. A font unit has horizontal and vertical components. These are the values of the XmScreen resources XXXXmmmmNNNNhhhhoooorrrriiiizzzzoooonnnnttttaaaallllFFFFoooonnnnttttUUUUnnnniiiittttand XXXXmmmmNNNNvvvveeeerrrrttttiiiiccccaaaallllFFFFoooonnnnttttUUUUnnnniiiitttt. _p_a_r_s_e__e_r_r_o_r Specifies if a parsing error occurred. This is set to a value of True indicates that an error occurred, a value of False to indicate no error. RRRREEEETTTTUUUURRRRNNNN Returns the converted value. If a NULL screen, incorrect _o_r_i_e_n_t_a_t_i_o_n, or incorrect _u_n_i_t__t_y_p_eis supplied as parameter data, or if a parsing error occurred, 0 (zero) is returned. RRRREEEELLLLAAAATTTTEEEEDDDD XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss(3), XXXXmmmmSSSSeeeettttFFFFoooonnnnttttUUUUnnnniiiittttssss(3), and XXXXmmmmSSSSccccrrrreeeeeeeennnn(3). Page 2 (printed 4/6/01)